package cn.tt.moudles.sys.mapper;

import cn.tt.moudles.sys.entity.Demo;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Description Mybatis
 * @Date 2017/7/29 16:56
 * @Since v1.7
 * @Autor Nick
 */
@Mapper
public interface DemoMapper extends BaseMapper<Demo> {

	/**
	 * 自定义注入方法
	 */
	int deleteAll();

	@Select("select id, name from user")
	List<Demo> selectListBySQL();

}
